package com.ctibook.booksystem.ws;

public class FtpServiceWSProxy implements com.ctibook.booksystem.ws.FtpServiceWS {
  private String _endpoint = null;
  private com.ctibook.booksystem.ws.FtpServiceWS ftpServiceWS = null;
  
  public FtpServiceWSProxy() {
    _initFtpServiceWSProxy();
  }
  
  public FtpServiceWSProxy(String endpoint) {
    _endpoint = endpoint;
    _initFtpServiceWSProxy();
  }
  
  private void _initFtpServiceWSProxy() {
    try {
      ftpServiceWS = (new com.ctibook.booksystem.ws.FtpServiceWSImplLocator()).getFtpServiceWSImplPort();
      if (ftpServiceWS != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)ftpServiceWS)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)ftpServiceWS)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (ftpServiceWS != null)
      ((javax.xml.rpc.Stub)ftpServiceWS)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.ctibook.booksystem.ws.FtpServiceWS getFtpServiceWS() {
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    return ftpServiceWS;
  }
  
  public com.ctibook.booksystem.ws.FtpUploadFileInfoRecordViewVo[] getFtpUploadFileInfoRecordById(java.lang.String ftpFileId, java.lang.String ftpServiceId) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    return ftpServiceWS.getFtpUploadFileInfoRecordById(ftpFileId, ftpServiceId);
  }
  
  public com.ctibook.booksystem.ws.PageViewVO getFtpFileInfoViewVoByParams(com.ctibook.booksystem.ws.ParameterVo[] paramVos, int pageIndex, int pageSize) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    return ftpServiceWS.getFtpFileInfoViewVoByParams(paramVos, pageIndex, pageSize);
  }
  
  public com.ctibook.booksystem.ws.FtpServiceUploadFtpFilesViewVo[] getFtpServiceUploadFtpFileInfo() throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    return ftpServiceWS.getFtpServiceUploadFtpFileInfo();
  }
  
  public void deleteFtpService(java.lang.String ftpServiceId) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    ftpServiceWS.deleteFtpService(ftpServiceId);
  }
  
  public com.ctibook.booksystem.ws.FtpServiceViewVo[] getFtpServiceViewVosByType(java.lang.String ftpServiceType, int enableValue) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    return ftpServiceWS.getFtpServiceViewVosByType(ftpServiceType, enableValue);
  }
  
  public java.lang.String[] getFtpFileMatchFtpServiceRecordIdsByFtpFileIdAndFtpServiceId(java.lang.String ftpFileId, java.lang.String ftpServiceId) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    return ftpServiceWS.getFtpFileMatchFtpServiceRecordIdsByFtpFileIdAndFtpServiceId(ftpFileId, ftpServiceId);
  }
  
  public java.lang.String[] getFtpFileInfoExtensions() throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    return ftpServiceWS.getFtpFileInfoExtensions();
  }
  
  public void updateFtpFileMatchFtpServiceRecordPassInfo(java.lang.String recordId, java.lang.Boolean pass) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    ftpServiceWS.updateFtpFileMatchFtpServiceRecordPassInfo(recordId, pass);
  }
  
  public com.ctibook.booksystem.ws.FtpFileInfoViewVo[] getFtpFileInfoViewVosByFtpServiceId(java.lang.String ftpServiceId, java.lang.Boolean approvedByHuman) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    return ftpServiceWS.getFtpFileInfoViewVosByFtpServiceId(ftpServiceId, approvedByHuman);
  }
  
  public void saveFtpFileMatchFtpServiceRecordViewVo(com.ctibook.booksystem.ws.FtpFileMatchFtpServiceRecordViewVo recordVo) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    ftpServiceWS.saveFtpFileMatchFtpServiceRecordViewVo(recordVo);
  }
  
  public com.ctibook.booksystem.ws.FtpFileDownloadViewVo[] getFtpDownloadFileViewVoByFtpServiceIdAndDownloadPath(java.lang.String ftpServiceId, java.lang.String[] downloadPaths) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    return ftpServiceWS.getFtpDownloadFileViewVoByFtpServiceIdAndDownloadPath(ftpServiceId, downloadPaths);
  }
  
  public void addUploadFtpFileRecord(com.ctibook.booksystem.ws.FtpUploadFileInfoRecordViewVo recordVo, java.lang.String ftpServiceId) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    ftpServiceWS.addUploadFtpFileRecord(recordVo, ftpServiceId);
  }
  
  public void addOrUpdateFtpService(com.ctibook.booksystem.ws.FtpServiceViewVo viewVo) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    ftpServiceWS.addOrUpdateFtpService(viewVo);
  }
  
  public void updateFtpServiceStatus(java.lang.String ftpServiceId, java.lang.Boolean enable) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    ftpServiceWS.updateFtpServiceStatus(ftpServiceId, enable);
  }
  
  public com.ctibook.booksystem.ws.FtpUploadFileInfoRecordViewVo[] getFtpUploadFileInfoRecordViewVoByParams(com.ctibook.booksystem.ws.ParameterVo[] paramVos) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    return ftpServiceWS.getFtpUploadFileInfoRecordViewVoByParams(paramVos);
  }
  
  public void addUploadFtpFileRecords(com.ctibook.booksystem.ws.FtpUploadFileInfoRecordViewVo[] recordVos, java.lang.String ftpServiceId) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    ftpServiceWS.addUploadFtpFileRecords(recordVos, ftpServiceId);
  }
  
  public com.ctibook.booksystem.ws.FtpFileMatchFtpServiceInfoViewVo getFtpFileMatchFtpServiceInfoViewVoByFtpFileId(java.lang.String ftpFileId) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    return ftpServiceWS.getFtpFileMatchFtpServiceInfoViewVoByFtpFileId(ftpFileId);
  }
  
  public void addOrUpdateFtpFileInfoViewVos(com.ctibook.booksystem.ws.FtpFileInfoViewVo[] viewVos) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    ftpServiceWS.addOrUpdateFtpFileInfoViewVos(viewVos);
  }
  
  public void saveFtpFileInfoApprovedResult(java.lang.String[] ftpFileIds, java.lang.Boolean enable, java.lang.String approvedResult, java.lang.String approvedUserId) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    ftpServiceWS.saveFtpFileInfoApprovedResult(ftpFileIds, enable, approvedResult, approvedUserId);
  }
  
  public void addOrUpdateFtpFileInfoViewVo(com.ctibook.booksystem.ws.FtpFileInfoViewVo viewVo) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    ftpServiceWS.addOrUpdateFtpFileInfoViewVo(viewVo);
  }
  
  public void deleteFtpFileViewVo(java.lang.String ftpFileId) throws java.rmi.RemoteException{
    if (ftpServiceWS == null)
      _initFtpServiceWSProxy();
    ftpServiceWS.deleteFtpFileViewVo(ftpFileId);
  }
  
  
}